import Vue from 'vue'
import App from './App'
import * as filters from '@/common/js/filter'
import MyPlugin from './common/utils/custom'
import globalData from '@/common/js/globalData'
import animate from './common/css/animate.css'
import install from '@/common/js/install'
import store from './store/index' // 引入store
Vue.config.productionTip = false
Vue.prototype.$store = store


Vue.use(install)
Vue.use(MyPlugin)
Vue.use(globalData)

//实现过滤器的全局分装
Object.keys(filters.filters).forEach(key => {
    console.log(key)
    Vue.filter(key, filters.filters[key])
})


App.mpType = 'app'

const app = new Vue({
    Vue,
    ...App,
    store,
})
app.$mount()